﻿<UserControl x:Class="nyxwin.Common.Silverlight.Controls.ThemeAwareIcon"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="100" d:DesignWidth="100">
    <Grid x:Name="LayoutRoot">
        <Border x:Name="Image" HorizontalAlignment="Center" VerticalAlignment="Center" Width="48" Height="48" Background="{StaticResource PhoneForegroundBrush}">
            <Border.OpacityMask>
                <ImageBrush Stretch="UniformToFill">
                    <ImageBrush.ImageSource>
                        <BitmapImage UriSource="{Binding Path=IconUri}" />
                    </ImageBrush.ImageSource>
                </ImageBrush>
            </Border.OpacityMask>
        </Border>
    </Grid>
</UserControl>
